package com.offdissys.common.core.constant;

/**
 * @author ZhangHaiWen
 * @title: TokenResultEnum
 * @projectName shop_springcloud
 * @description: token校验异常
 * @date 2020/8/1414:58
 */
public enum TokenResultEnum implements ResultEnumInterface {
    OBJECT_NOT_EMPTY(302,"加密对象不能为空"),
    TOKEN_NOT_EMPTY(302,"请求令牌不能为空"),
    TOKEN_NOT_EXIST(302,"请求令牌不存在，拒绝访问"),
    USER_OVER_TIME_LOGIN(302,"登录信息已经过期，请重新登录"),
    TOKEN_BUILD_ERROR(500,"令牌构建失败"),
    TOKEN_INVALID_ERROR(500,"令牌失效请重新获取"),
    ;
    private Integer code;
    private String msg;

    TokenResultEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return null;
    }

    @Override
    public String getMsg() {
        return null;
    }
}
